Ensure real output for real inout in LYAP().