Summary:
On mac the curl command fails with error "A libcurl function was given a bad argument", but succeeds on retries so add a retry loop till it succeeds.
`curl_global_init` should be called before `curl_easy_init`. Adding a global helper to correctly initialize and clean it up in tests.
Re Enable all master path handler tests for mac.
Fixes #22633
Jira: DB-11539
Test Plan: master_path_handlers-itest
Reviewers: asrivastava
Reviewed By: asrivastava
Subscribers: ybase
Differential Revision: https://phorge.dev.yugabyte.com/D35405