Test large numbers of keys in the database

Primarily to test garbage collection, but testing on a device with lots
of keys also showed some other slow operations so test those too.

Test: keystore2_test
Bug: 319563050
Change-Id: I308451992aa7cd6fd1a0fa43f0c113228ae7845d
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index 28bdfea..bfda27f 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -111,6 +111,7 @@
         "liblibsqlite3_sys",
         "libnix",
         "librusqlite",
+        "libtempfile",
     ],
     // The test should always include watchdog.
     features: [