sptests/sptls02: Add test case
Add a test case which requires the use of tls_guard() and tls_init().
Change license to BSD-2-Clause.