lock_array is dynamically resizing with hashtable

lock is located at lock_array[INDEX_OF_ELEMENT_TO_BE_HASHED]