ddraw/tests: Release device after ddraw. Fix a use-after-free since device holds reference to ddraw surface, which in turn holds reference to ddraw.