Fix lock on RTM