Replace deadlockable call to which_applications/1 with checking for a named process instead; much cleaner.
merge bug25571 into stable