Make authenticator thread-safe