next_in_queue(): Fix detection of losing race with balance_pool().

The path $p here is relative to the deps dir, so there is no
/ before "unbalanced/..."