osd/MemStore: handle collection_move_rename within the same collection

Signed-off-by: Sage Weil <sage@redhat.com>
os/MemStore: fix wrlock ordering checks

We can't compare the shared_ptrs themselves; we need to compare the
addresses of the actual objects.

Signed-off-by: Sage Weil <sage@redhat.com>
os/MemStore: copy attrs on clone

Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
ceph_test_objectstore: test memstore

Signed-off-by: Sage Weil <sage@redhat.com>
Merge pull request #2125 from ceph/wip-memstore

memstore: a few fixes, and enable the tests!

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>