miniupnpd: avoid unnecessary restarts, add SPDX tag