def wait_to_acquire(key, session, value = nil, check_interval = 10, options = {})
      acquired = false
      until acquired
        acquired = acquire(key, session, value, options)
        sleep(check_interval) unless acquired
        return true if acquired
      end
    end
def wait_to_acquire(key, session, value = nil, check_interval = 10, options = {})
      acquired = false
      until acquired
        acquired = acquire(key, session, value, options)
        sleep(check_interval) unless acquired
        return true if acquired
      end
    end
wait to aquire a lock
 @param key [String] the key
 @param session [String] the session, generated from Diplomat::Session.create
 @param value [String] the value for the key
 @param check_interval [Integer] number of seconds to wait between retries
 @param options [Hash] options parameter hash
 @return [Boolean] If the lock was acquired