liblock: initial commit

This kinda works, still needs a lot of work in the makefile department.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>