Make a deep copy of the pthread attribute object to remove a potential use-after-free issue.
mentioned in commit 217b6dc2
mentioned in commit ff75390e
mentioned in commit 16949aea
mentioned in commit 4b6be914
mentioned in commit 8c06748c