osd: fix race in do_recovery()

Verify that the PG is still RECOVERING or BACKFILL when we take the pg
lock in the recovery thread.

Signed-off-by: Sage Weil <sage@inktank.com>