fix lock never getting freed