Fix atomic check on macOS
Commit f963f4f4 broke libatomic on macOS, this patch fixes it, however I could not check it does not break Bugs 430872, 443817
Commit f963f4f4 broke libatomic on macOS, this patch fixes it, however I could not check it does not break Bugs 430872, 443817