SharedPref: apply instead of commit

Doing commit() in these two places is not necessary, apply()
is better because it will let the changes be handled in the
background. For SOCMain, however, it's probably better to
continue using commit().