# File src/ruby_supportlib/phusion_passenger/utils/lock.rb, line 40
      def synchronize
        lock if !@locked
        begin
          yield(self)
        ensure
          unlock if @locked
        end
      end