Add thread-safe priority queue with arbitrary priorities using flat combining