osd: do not update in-memory or on-disk SnapSet unless modified

Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
Signed-off-by: Sage Weil <sage@redhat.com>