dbm: Implement 2PC/WAL grace period