The Prime Ministers of Australia and New Zealand have discussed ways to boost cooperation between defence forces on either side of the Tasman, during a meeting in Sydney.