Resilience and local stability in a nutrient-limited resource-consumer system