remove pid from lock to prevent stuck tasks