osdc/Objecter: consisteny return error in prval

In several error paths we were not copying the error code to prval.

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