[clang-tidy] Fix clang-tidy errors

Fix the following clang-tidy errors:
readability-avoid-const-params-in-decls
readability-static-accessed-through-instance
modernize-avoid-bind
cert-msc30-c
cert-msc50-cpp
cert-err34-c
performance-faster-string-find

Google-Bug-Id: 375054631
Change-Id: Ie1cff74d9e887e0f1df20288623639e437d50ac8
Signed-off-by: David Tang <davtang@google.com>
16 files changed