Thamos, Koenig in Aegypten