[PATCH v3 03/16] selftests/resctrl: Fix closing IMC fds on error