reg/tests: Modify delete_key() to support use of RegDeleteKeyEx().