Capture proper transaction id during checkpoint.
Prevent replica from attempting to write an empty buffer and failing.
Configurable number of replication threads.