OSD,PG: update primary as necessary

We need to read up_primary and primary out of osdmap
in case there is a temp primary mapped.

Signed-off-by: Samuel Just <sam.just@inktank.com>