If you can't reproduce on a newer version of mesa then it's "been fixed" :-) Blocking shutdown is simply due to the device deinit being blocked because the device is not in an operational state. Not much to be done from a driver point of view I don't think.