OSSE chief quits for Law Society of Scotland role