Fix tcu::Resource leak in draw and dynamic_state tests