Merge pull request #23911 from dmatej/felix-jdk17-fix

Felix jdk17 fix - able to start with the Security Manager enabled