Merge pull request #7379 from micmac1/maria-pthread-detach