The test was reading AGENT_BROWSER_HEADED without holding ENV_MUTEX, causing a race with test_launch_options_from_env_headed_flag when tests run in parallel.
The test was reading AGENT_BROWSER_HEADED without holding ENV_MUTEX, causing a race with test_launch_options_from_env_headed_flag when tests run in parallel.