Add doorlock

Initial doorlock code.

Signed-off-by: Paul Brook <paul@nowt.org>
Doorlock improvements

Tweak and document door lock protocol.
Proper multithreaded server-side daemon.

Signed-off-by: Paul Brook <paul@nowt.org>