title: terraform statefile is locked how do I unlock it
body: <p>I have used <code>terraform</code> state list but it is showing that you can't read due to <code>tfstate</code> file is locked.<br />
  How do I unlock and get state of deploying resources?</p>
  <pre><code>Error: Error loading state: Failed to read state file: The state file could not be read: read terraform.tfstate: The process cannot access the file because another process has locked a portion of the file.
  </code></pre>