F/merge proto

Can these checks on use_backlog go into the header, just like with log_queue_pop_head() function?

These are scattered all around, and as it stands, it has to be replicated to all queue implementations.