tcp: bind http and htsp ports before setting uid / gid - fixes#2190