The issue was caused by original datablock being returned where we were expecting copy-on-written one to be returned.