...depending on the object hash/element and the number of lock objects? I need more hints. Also tried ternary with lock[hash or i] but didn't know what the else would be if hash or i was larger than lock.length.