Thread-local methods for setting user