Fixed new scheduler id handling and duplicate socket destruction send to host.
Merge branch 'develop' of https://github.com/Starcounter/Starcounter into OldSqlIssues