[openvz] Fixes #1871 test helper callback

This moves the setting up of an `at_exit` callback from when the file
is required to when the matching helper is used.

This prevents it failing on any run where OpenVZ is excluded.