NEXUS-6182: Mojo hangs in non-parallel build.

But might hang in parallel builds too.

Issue
https://issues.sonatype.org/browse/NEXUS-6182

CI
https://bamboo.zion.sonatype.com/browse/NX-MVNF0