dynconfig: replace #if (_SAMBA_BUILD_ >= 4) by feature tests