Add ResolveForWrite helper that resolves symlinks before writing, so atomic writes go to the symlink target instead of replacing the symlink. This prevents `bd setup claude` from overwriting nix/home-manager managed ~/.claude/settings.json symlinks. Closes #665 Co-authored-by: qmx <qmx@qmx.me>