osd: Fix bugs in PG::read_log() handling

Signed-off-by: David Zafman <david.zafman@inktank.com>
osd: Eliminate compiler warnings

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