Set Spring Security context mode to THREAD_LOCAL