Force the latest shard to close (be converted to a matrix and stored to disk). Do nothing if no new documents added since last call.

NOTE: the shard is closed even if it is not full yet (its size is smaller than self.shardsize). If documents are added later via add_documents(), this incomplete shard will be loaded again and completed.