bitforce: Refactor FLB and queue flush sanity checks