Locks should be outside try/finally

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1581888 13f79535-47bb-0310-9956-ffa450edef68
Locks should be outside try/finally

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1581889 13f79535-47bb-0310-9956-ffa450edef68
More try-with-resources

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1581890 13f79535-47bb-0310-9956-ffa450edef68