RTM lock/unlock function