Fix comm_spawn for oversubscribed systems by correctly computing the number of available slots

cmr=v1.7.4:reviewer=jsquyres:subject=Fix comm_spawn for oversubscribed systems