Servlet writer synchronisation fixes

- in cooperation with Oleksyi@grizzly team, related to GLASSFISH-21010