Revert "Revert "Revert "libspark/record: Implement writer thread. May or may not improve anything."""

This reverts commit a3ba152ccf0e40eab303a018fb2c7ead7b987556.