test: Makes the unit tests to work again

The unit tests was not working due to lack update. This patch adds
the necessary stuff to have it work again.
test: Avoids conflict of fuctions definition
Redefines unixd_set_global_mutex_perms on tests

Avoding conflicts with the standalone implementation
Merge branch 'unit_tests' into remotes/trunk