Rewrite the lock directory list handling
Rewrite the lock directory list handling

Change-Id: Id33e834d4b4ff6dc0cdbbd6dfd2fd970958a381a
Reviewed-by: Sergey Belyashov <8871b4c2d635fca691211507eadbac3d0bc2695a@gmail.com>
Reviewed-by: Denis Shienkov <6a9c747bd2ba446682324cf340d3b86f30cf4d55@gmail.com>

RoadWorksSoftware/QtSerialPort-OS2,RoadWorksSoftware/QtSerialPort-OS2,kobolabs/qtserialport,kobolabs/qtserialport