module_utils/atomic_move(): Restore owner/group

Manually restore owner and group if both src and dest are on a separate
file system.
module_utils/atomic_move(): Use tempfile module

Fix a potential race condition by using the tempfile module.
Merge branch 'atomic_move_restore_owner_group' into work