thread.php fix

Lock/Unlock comparator fixed