Merge "surface: Update the native alloc flag to read-only version" into main