The leaders of Australia and Indonesia will regularly talk through regional security risks under a newly agreed defence treaty.