Ensure tools/ds_permute_probe.py closes the opened hardware oracle on all
exit paths (non-GFX10 exit 77, mismatch return 1, report write error, and
exceptions) using a try ... finally block with hasattr(oracle, 'close').
Added unit tests in tests/test_ds_permute_probe.py verifying close() is
invoked on all variants.
Item: PROBE-DSPERMUTE-ORACLE-CLOSE
agent: yes
AI-assisted: yes