[lib] fix kv_ro_of_fs evaluating too early and picking up default mode=unix