HBASE-11403 Fix race conditions around Object#notify