block: fix use-after-free of q->q_usage_counter