Slightly modified version of the upstream fix to the set hostname API,
found here: f63b70aa3d
Sets the custom hostname in the system STA_START event, rather than directly. Falls back to "defaultHostname"
Allows a custom client-mode hostname to be set.
Co-authored-by: Riccardo Rizzo <r.rizzo@arduino.cc>