Fix #2407 add FOR UPDATE clause