Fixed order of configuration and cleaning in Spring Security context holder.