Protect changing goalSelector to a single server thread, to prevent crash

1 job from develop in 26 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #37481
minecraft
build_mod

00:26