osdmaptool: allow OSDMap encode

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