add inline tests

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
add futex locking

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>