Sometimes using setUnconscious on a unit will result in its side being switched to civilian, sometimes it will not. This is not reflected in the return code of setUnconscious.
This appears to be related somehow to its combat status, however it is not directly related to the units combat mode.