Add a failing spec for handling a race condition

The spec uses a hook method to simulate the insertion of an
acts_as_xapian_job in another process for the model.
Handle a race condition in index update requests.