Wrap a MemoryIOSystem
method with permission-checking logic. The returned function will check
self.permissions and raise IOError
with errno.EPERM
if the function name is not listed as an available permission.