discard lock

lock will easily lead to dead lock