Apple supplier Foxconn third-quarter profit near flat, beats estimates