diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
index 2f5374b..c6fd767 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
@@ -410,4 +410,11 @@ public function getFullQualifiedTableName($table) {
     return $prefix . $table;
   }
 
+  /**
+   * Always use immediate locking to prevent 'sqlite busy' exceptions.
+   */
+  public function beginTransaction() {
+    return $this->exec('BEGIN IMMEDIATE') !== FALSE;
+  }
+
 }
