Thread safety for Base.current_scope