[libcxx] Use `lgamma` rather than `lgamma_r` with LLVM libc (#109556) `lgamma_r` is currently only available on GPU targets. GitOrigin-RevId: 84ce230e4298672bb5247170d6183b31aa06fc4b