osd: add a dirty flag for objects.

- set it on write
- add rados ops to query or clear the flag

also fix a small bug in copy_get.