Resolve deadlock problem

This problem would occur when using the send via email feature on an
object with a pentaho report, such as an invoice, and the database had
the portal features enabled.
Clarify why we must commit to remove deadlocks that are occurring
Merge pull request #137 from thomas-willowit/version70

Resolve deadlock problem