Add missing tst-libc-locking.cc file

Add the actual test case that was forgotten from commit a9f8092
("Introduce test for libc locking").

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>