AFAICS this is expected. If you want concurrency protection you have two options. Use optimistic locking or pessimistic locking.