Cleared lock functions in FrameworkModel/setSession.