Getandlock followed by upsert with correct CAS throw an error

Hi @flaviu

The following post has answer