Samsung Electronics shares surge more than 6% after a tentative pay deal averts a walkout by nearly 48,000 workers.