Handle most deadlocks and default RaiseErrors to 1
Now all SQL errors will immediately die. I've audited all of the callers
I can find. Queries which are called in or near transactions are all now
deadlock friendly.
More common cases of what actually *causes* the deadlocks should be fixed,
however a lot of the ones I see now are deadlocking against individual
queries and have no obvious resolution. They are rare, let them happen.
git-svn-id: http://code.sixapart.com/svn/mogilefs/trunk@1350 f67b2e87-0811-0410-a7e0-dd94e48410d6