General Motors' Korean offshoot is set to buy a stake in a Polish car maker.