HDFS-5642: log errors for pthread mutex lock/unlock failures.