That's probably a bug... as long as a key is following a bot, they should automatically unlock locked gates just by touching them. I've never encountered that in testing, sorry that it happened to you.
Tuff🐺💀