commands: fix run reconfigure

Apparently session and connection view two different state of the
database hence to see the changes made to the attributes reflected in
the rocks list host xml executed thereafter we need to close and re-open
the connection.

A commit on the sessions is not be enough (i tried commit, flush, and
close_all) the connection will see the old values in the DB.