Global stability of population models with patch structure