Fix deadblock in 615a22a579221dfe5509c8dd7bcf01a93abba9d5.

diff --git a/lib/sidekiq/pausable.rb b/lib/sidekiq/pausable.rb
index 000a0e3..79ebf97 100644
--- a/lib/sidekiq/pausable.rb
+++ b/lib/sidekiq/pausable.rb
@@ -76,9 +76,9 @@ class SidekiqPauser
 
       @extend_lease_thread ||= Thread.new do
         while true do
-          @mutex.synchronize do
-            break if !@extend_lease_thread
+          break if !@extend_lease_thread
 
+          @mutex.synchronize do
             @dbs.each do |db|
               RailsMultisite::ConnectionManagement.with_connection(db) do
                 if !$redis.expire(PAUSED_KEY, TTL)

GitHub sha: cff10876