(D3D) Build fixes for lock_rectangle_clear wrapper function