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