Resolve Java 25 ftbfs
This MR addresses 1108590.
Changes:
- Java 25 removes Security Manager, this MR adds a patch that drops test command line change and adds a patch to remove Security Manager calls.
Testing:
- rebuild in sid chroot
- rebuild in sid chroot with Java 25 enabled.