init: improve handling of signals racing with each other