How to automate execution locate.updatedb by using a bash script
After additional (re)search I found an easy solution:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

This is also persistent, so it will run updatedb daily.