Closing the file lock will now wait until the background thread is stopped.

git-svn-id: http://h2database.googlecode.com/svn/trunk@5052 e6896862-9d19-0410-bfb3-e9fa5d50e656