libmemif: slave connecting bugfix