osd: fix return value

broken by a22c1eb21dd71de69cda45709b1e0b28c0b01e61

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