compressionwriter: don't require active context manager to call memory_size()
compressionwriter: don't require active context manager to call memory_size()

In preparation for making the context manager optional.

indygreg/python-zstandard,indygreg/python-zstandard,indygreg/python-zstandard,indygreg/python-zstandard