Adds test for riot threads.

The test uses riot threads to calculate the factorial of 12,
with one thread for each multiplication. The core mutex is
used for synchronization.
Merge branch 'add_test_thread_factorial' of https://github.com/josephnoir/RIOT into add_test_thread_factorial

Conflicts:
	tests/test_thread_cooperation/Makefile