Close gitea ssh connections in the upgrade steps
As said in #46 (comment 1881151), we may have some persistents connection to gitea, wich may cause the upgrade process to fail.
I suggest to disconnect them before altering the system's gitea
user.