Regenerate loader.conf.local when serial port address or speed is changed.

Ticket: #6340
(cherry picked from commit f30e1db3b19bcc0e9928d3f502ee353439e5a5eb)