Merge "PatchCommandThread: Add clang thread-safety" into udc-dev-plus-aosp