added hle and rtm transactional code wrappings to lock functions