service: correctly roll-back state on exception (bad_alloc).
service: correctly roll-back state on exception (bad_alloc).

Since a service adds its dependencies to other services' dependents
lists, it needs to roll back those changes if failing due to a bad_alloc
(or other exception).

davmac314/dinit,davmac314/dinit,davmac314/dinit