Move spin_lock validation outside of thread.c into own file. This code really has nothing to do with the thread code. Signed-off-by: Anas Nashif <anas.nashif@intel.com>