cockpitwebserver: Make use of libgsystem local allocation

Per discussion on the list, it improves the code.