Set parent_host_name in Dependency objects to the host's name for apply rules.

Fixes #6197