ceph: fix mds sync() race with completing requests