liblock: steal a much better makefile from tools/lib/traceevent/

No need to reinvent the wheel here.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
liblock: move unrelated stuff out of our lockdep header

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