GROOVY-6068: Thread safety issue in AntBuilder leads to major memory leak