[PATCH v4 1/9] block: Fix a race in the runtime power management code