lock the inode before putting it on the hash list