adding lock and sleep for knx plugin