make dberr.Error thread-safe
Merge pull request #78 from omeid/master

Make dberr.Error thread-safe.