A man who was suspected of having a gun has been arrested and bailed after his presence in Adelaide’s inner south triggered private girls’ school Walford to lock its students inside.