Self-organized patchiness facilitates survival in a cooperatively growing Bacillus subtilis population