nine/cubetexture: fix error check for LockRect with AUTOGENMIPMAP