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

Fix #2407 add FOR UPDATE clause