Lenovo third-quarter profit tops expectations