Fix #2407 add FOR UPDATE clause
Merge pull request #2715 from dreamsxin/model_forupdate

Fix #2407 add FOR UPDATE clause