diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
index c0f6c10..19b5f50 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
@@ -403,4 +403,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;
+  }
+
 }
