BZ-1045537: files remaining locked after repository close in windows - this fix follows this advice: http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg01957.html