Set up num_read_locks and num_write_locks