Add class method .coliding_locks
typo coliding -> colliding
whitespace
Ensure that it works when task_id nil

without arel it generates wrong sql