osd: Write log to omap

log from wip-pginfo
Fix bugs in PG::read_log() handling
Eliminate compiler warnings

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: David Zafman <david.zafman@inktank.com>