A ferry carrying more than 300 people - three times its limit - sank as it prepared to dock on an island in Lake Victoria, Tanzania.