fix Encryptor lock