You can create another Entity call it DbLock (for instance) and a dummy record ... just for locking purposes and everytime you create need to create a new record of your entity ... first you do a get of the DbLock dummy record. Got it?