Ulstrup Sogn, Aalborg Amt