Lock encryptor in Flush.