Add javadoc and atomic close() guard.

Adding javadoc on ClosableIterator implementations that will invoke
the close() method when hasNext() return false. Adding atomic
close() guard on PageDB.Iter class to ensure that close() operation
happens at most once.