libmemif: fix for memif_init_queues slot math