Allow io.UnsupportedOperation when write to closed LZMAFile

This seems reasonable, and gets this assertion to pass under Python 2.