tests/hwloc_insert_misc: more assertions

To detect spurious failures on AIX because of ENOMEM.

(cherry picked from commit 713add8e6fcc1de23f9286a5d7823b6ac4162f8e)