[runtime] Map prim_allocate_filled to new API.