Indonesian leader says locked gates contributed to deaths