lockd: implemented a priority queue for the serial interface
fixed bug in the doorlogic when handling buttons