GROOVY-6456: AbstractHttpServlet.applyResourceNameMatcher race condition

updated Patch submitted by Andrej Fink