Fix sdsize() to not call sdopen()/sdclose() unless it is needed.
Fix sdsize() to not call sdopen()/sdclose() unless it is needed.

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