Secrets documents have revealed Australia’s deliberations on homegrown terrorism two decades before the Bondi massacre.