Partially solve a problem with jetty locks