locking and update issue in odata