Revert "revert lt_dlopenext to the code from v3.0.x."

This reverts commit bc0d773ab79650a58a2120d3f58cbc3f6f594e6c.