[PATCH] block: Fix a race in the runtime power management code