Add `warnings` parameter to `detect_fn`

- False by default; True for final `is_installed` check after installation
  and when doing `rosdep check`.
- Use in homebrew detect to decide when to print warnings about unlinked kegs
  and wrong options.