erts: Use internal stack for ets db_has_variable