usync_queue: fix queue pull mechanism, should check if active in loop with empty check