Issue #3358328 followup by andypost: Improve how KernelTestBase manages its persistent key value storage