Fix intermittent failures in profiler_spec.rb
When multiple threads run in spec/lib/gitlab/profiler_spec.rb, the output contains profiles for each thread. The previous test assumed there were only 1 profile, but we need to account for multiple outputs. To fix this test, we parse and test each thread profile independently.
Closes #206907 (closed)
Edited by Stan Hu