Proposed changes that ensure that the WAL header is written prior to the first commit mark. FossilOrigin-Name: 91d0437c0702904d27f0ef7b1b52d0797efe1826