osdc/Objecter: consistently 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>