Fix errors that crash the Java VM when a cursor is explicitly closed.
The java test suite now passes cleanly.
refs #649
Merge pull request #830 from wiredtiger/java-auto-close3

Fix errors that crash the Java VM when a cursor is explicitly closed.