openjdk: rework global vars to make xbps-checkvers(8) happy.