Fix/workaround https://www.illumos.org/issues/4277