[PATCH 5.15 561/731] selftests/powerpc: Fix resource leaks