For ENG-6153, add a helper method for spinning on a ReentrantLock