simple queue implementation on read write locks for benchmarking