d3d: Fix some missing Releases() in debug code.