OOZIE-1922 MemoryLocksService fails if lock is acquired multiple times in same thread and released