Increase determinism in DiskLruCache tests.

This kills a flaky test by dependency injecting the executor and using a test version as a stronger signal.
This is unrelated, but avoids the allocations from the getter version. It would be nice to write string versions of primitives straight to a `BufferedSink` (e.g., `writeLongString` or something).