Added r/w locks to hashtable.