Thread safety analysis: move warnings within lock/unlock functions out of beta.