title: New sqlite3 database is locked
body: <p>I'm finding that new sqlite3 database files are locked before any use that I am aware of.</p>
  
  <pre><code>sqlite3 new.sqlite
  sqlite&gt; SELECT * FROM SQLITE_MASTER;
  Error: database is locked
  </code></pre>
  
  <p><code>lsof</code> on the new file is empty. Copying the database file to a new location doesn't help. Permissions on the file are OK.</p>
  
  <p>How else can I determine why a new sqlite3 file might be locked?</p>