TEST: unit test for basic functionality of util_concurrency.h

This adds a test case for the basic functionality implemented in `util_concurrency.h`
Additionally it renames `dirent.{h|cc}` to `directory_entry.{h|cc}` because the name clashed with the system include file `<dirent.h>`.