monitor: fix qmp/hmp query-memdev not reporting IDs of memory backends