Integrate WriteRef with WAL
This MR implements WAL support into WriteRef. If the WAL is enabled, as determined by whether the PartitionManager is set, the RPC performs its update through it. External behavior should be unchanged.
Closes #5152 (closed)