osd: stop agent when PG goes inactive

Signed-off-by: Sage Weil <sage@inktank.com>
osd: clear agent state when PG becomes a replica

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