Adding clang thread safety analysis for ROS2 core packages

I haven’t looked at the details, but what you say makes sense from a maintainability point of view.