Continuation of #5076, for the required breaking changes to make write_queue_size also safe internally for I/O on 32-bit machines.