You won't have been locked out. You disabled the DNS resolver so whatever URL you were using to access the web GUI could not be resolved.You should have been able to access the web GUI using the firewall IP address to enable unbound again
https://192.168.1.1
https://192.168.1.1:8443