Memcached Locking Semaphore with PriorityQueue