Update ResourcesOptimizerMojo.java

Marked the mojo as thread safe.