Use nativeloader instead of system loader to load JNI library for soloader compatibility. (#29350)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29350
ghstack-source-id: 93491099
Test Plan: P121597890
Reviewed By: dreiss
Differential Revision: D18352773
fbshipit-source-id: 712c3f5d10a3d4c815c5554bb62e1a95563ba7ff