lyd mods CHANGE module dependency collecting refactored
lyd mods CHANGE module dependency collecting refactored

It is now less efficient but hopefully more robust
and clear.

Refs #1720

sysrepo/sysrepo,sysrepo/sysrepo,sysrepo/sysrepo