Police feared Sydney street preachers with links to Islamic State would gain access to guns, court documents reveal.