ATOMIC_PACKAGE_REPOSITORY: Fix build with 9.1 and 8.x

mv(1) supports the -h param in 10.0/head/9.2 to rename a symlink instead
of move it. Add our own rename(1) which will just call rename(2).

This also avoids overhead in mv(1) and may be beneficial in queue
handling.