[PATCH v4 2/7] d3d9: Fix clearing flags for managed resources.