gh-35680: register magic modes for lazy imported interfaces
### :books: Description
Addresses #35246
The lazy imported interfaces are not registered as magic modes. This
patch registers them too.
### :memo: Checklist
<!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x
]`. -->
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [] I have created tests covering the changes.
- [] I have updated the documentation accordingly.
URL: https://github.com/sagemath/sage/pull/35680
Reported by: miguelmarco
Reviewer(s): John H. Palmieri