Added proper linked list implementation of read locks.