You need to go to the Avast section 'Protection → Virus Vault'. Find the locked file there. Call the context menu on it and apply the 'Restore' operation.