Optimizing Posterior Samples for Bayesian Optimization via Rootfinding