Revert "Load Profile state from Thread and tie visibility to the thread's model" (#30413)

This reverts commit 3615d6d96c5d1c8fd0ccb1ee0bc176e9c94ac730.

Ultimately, we want to restore the ability to store a profile
per-thread, but for now reverting this fixes a fairly disruptive bug.

Release Notes:

- Fixed a bug causing the agent to use the wrong profile in some cases.
d6ab416168Cole Miller committed on 5/9/2025, 6:09:38 PM· committed by GitHubparent8f07135
3 files changedLine totals unavailable