block: fix non-atomic access to genhd inflight structures