Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries


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