[Java] Move MacOS release build to build on Linux and test in CI