Fixing occasional failures in ClientCacheTest, TestStats and TJWSServletServerTest 

These issues are reported on JIRA as:

RESTEASY-859, RESTEASY-860, RESTEASY-861

with explanations and patches