With borders closed and entire countries on lockdown because of the coronavirus pandemic, some 2,000 migrants — many of them children under age 5 — have been detained for months in Panama, near the rainforest separating South and Central America.