Five young men face life behind bars after they were charged with terrorism offences over a plan to sail to Indonesia to join jihadist groups in Syria, Australian police said.