Don't write out changes if nothing has changed.

In additon store and return a copy of the lists stored in the
ResolveConf object.

Signed-off-by: Tony Asleson <tony.asleson@gmail.com>