Detect hardlink hazard: returns Ok(true) when the target node has more than one
hardlink (nlink > 1). Uses symlink_metadata to avoid following symlinks; callers
may optionally resolve and re-check as needed.
Best-effort check for the immutable attribute via lsattr -d.
Returns Err(String) only when the target itself is immutable.
If lsattr is missing or fails, this returns Ok(()) (best-effort).
Source trust checks. Returns Err(String) if untrusted and force is false. When force is true,
returns Ok(()) and leaves it to callers to emit warnings.
Best-effort check for SUID/SGID risk on a target path.
Returns Ok(true) when either SUID (04000) or SGID (02000) bit is set on the
resolved file; Ok(false) otherwise. On errors reading metadata, returns Ok(false)
to avoid spurious stops; callers may add an informational note if desired.