Return early and decline analysis when linting within unsafe functions; fixes #3658

I think this matches the intent of the issue, I'm a rust/servo novice; any suggestions for improvements are welcome. Thanks!