Fixes for #9811 and #9812

9811: lock_many was using wrong copy of os_{type,version}
9812: ~/.ssh/authorized_keys2 ist kaput