JBTM-1374 need to commit the transaction between the select for update a...

...nd the insert