How to prevent Xdebug from locking on running `bin/magento cron:run`?

You need to prevent the primary PHP process from forking.