__put_page appropriately swaps the contents of its in-memory buffers
when operating on a database that was created on a machine with a
different byte order. However, it does not revert the buffer to its
original state, leading to a corrupted buffer and possible
database corruption.
Address this by "unswapping" the buffer before returning from the function.
Sponsored by: Klara, Inc.
Inspired by: https://github.com/apple-oss-distributions/Libc