BLI_thread_queue_is_empty()
Avoids counting the whole queue when we only want to check whether it is empty or not!