[c10d] move ncclgetlasterror directive definition upfront (#85825)
Move the directive definition of ncclGetLastError() upfront so that
C++ preprocessor does not treat this as a empty string
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85825
Approved by: https://github.com/H-Huang, https://github.com/kwen2501