locking: Reimplementation.

Remove linked list and use glib.h hash functions.
locking: added Makefile