process: Make signal handling thread-safe.