Thread-safe Braintree