dm writecache: fix incorrect flush sequence when doing SSD mode commit