osd: kludge to allow log trimming while degraded

A more thorough fix of this is necessary in master (and that can be later
backported).  In the meantime, this is a conservative first step.

See #4116

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