# File lib/thinking_sphinx/guard/files.rb, line 12
  def call(&block)
    return if unlocked.empty?

    unlocked.each &:lock
    block.call unlocked.collect(&:name)
  rescue => error
    raise error
  ensure
    unlocked.each &:unlock
  end