Enable clang-tidy (and fix warnings) am: 9a3792e777 am: 066421180c am: 2bcbeb79eb

Original change: https://android-review.googlesource.com/c/platform/system/keymaster/+/1674707

Change-Id: I1e2bd48f3619f636a76084fd40b8dbab7efa7fa7