Thread-safe Blocking Queue implementation using one lock queue