James Anderson is in talks to join Surrey next season and extend his career in county cricket.