Polls the queue to see if a reference object is available. If one is available, it is removed from the queue and returned. Otherwise, returns null.