HDFS-5642: rework hash table locking.
HDFS-5642: fix mutex function call names.