kernel: introduce {fill,set}_savetls() functions

{fill,set}_savetls() save and restore TLS.

TLS is reinstalled by cpu_heavy_restore but not by syscall exit routines.
This means that for the main thread (i.e. the one that takes care of
restoring from checkpoint) set_user_TLS() has to be explicitly called.