Remove linker and dlopen flags that allowed undefined symbols in rocm build (#15091)
Summary:
Previously the undefined symbols were caused by disabled_modules in tools/amd_build/disabled_features.json (now it's cleared).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15091
Differential Revision: D13429595
Pulled By: bddppq
fbshipit-source-id: b341e83f9e5a8d16440a364e837b045a8a4fd6e1