apps/supervisors/exec: Avoid a deadlock