Fix wdsize() to not call wdopen/wdclose unless it is needed.
Fix wdsize() to not call wdopen/wdclose unless it is needed.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars