Australia and Indonesia have committed to briefing each other on security threats, in a major step for the security alliance.