Add msync after transactions