Select for update when getting links to swap. Hopefully this will fix one cause of...