DEPLOYITPB-4318 also upgrade junit and hamcrest on 3.8.x-maintenance

Some plugins on master use the 3.8.x common build, so to make things work
again an upgrade of junit/hamcrest is necessary.