[PATCH 3/7] test/amdgpu: Add helper functions for hot unplug