mesa: Make the register allocator allocation take a ralloc context.