* Refactor.

1. Use own mutex in RequestQueue, rather than sync on @requests. Easier to
   understand I believe.
2. SortedQueue is only used from inside RequestQueue, so there's no need for it
   to be thread-safe.

I believe, these changes simplify the code.