Do not call dispose within lock-statement.