s4-dsdb: added dsdb_functional_level() helper function