Remove lock when stopping ping listener