Synchronizing queue operations

@aaustin