prop: Fix edge cases when unlinking symlinks

Fixes #2107