How a 16,000-strong religious gathering led Malaysia to lockdown