8de4cc7236
Also: move mutex init/destroy into attach/detach functions and handle case where line discipline is closed before the irframe device. Fixes PR kern/40271.