DERBY-5960 VirtualRandomAccessFile.close() is not idempotent Merge revision 1402111 from trunk. Contributed by Knut Anders Hatlen