added a retry mechanism for dealing with slaveOk = false #840

fixes #840
Merge branch 'bugfixes/tokumx-1.3' into releases/tokumx-1.3