Thousands reach Torkham to cross over before border shuts down