cp: refactor Options::preserve_hard_links()
cp: refactor Options::preserve_hard_links()

Refactor common code into a helper method
`Options::preserve_hard_links()`. This also eliminates the need for
mutability in a local variable in two places.

uutils/coreutils,uutils/coreutils,uutils/coreutils