[PATCH 28/37] block: add helper for checking if queue is registered