MutableMap.remove with expected value in other languages

Release a locker only for its recorded owner