hash: add more accurate thread-safety comments