Adding locking of runs. -remove-runs skips runs with state of locked