loader: add knob to build with user malloc
This option is intended to aid development, to allow building with user
malloc. The use case would be to build userboot & test with libc (or
other) malloc and use extra malloc debug features.
(cherry picked from commit c907ec9e16745e3dacd15982f71dea21a06de53c)