Add try_lock method to spin_lock implementations.

4 jobs from master in 3 minutes 35 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
passed #2876
build_cmake

00:40

 
  Test
passed #2877
run_tests

00:42

 
  Sanitizer
passed #2879
run_address_sanitizer

01:15

passed #2878
run_thread_sanitizer

00:56