GRADLE-2699 - Close all handles to lock files used to make wrapper installation multi process safe before trying to delete them.