gsm: Cleanup and small fixes.

* Use size_t (or int in some cases) for length instead of uint8_t.
* Unify use of _DEBUG macro.
* Couple of other fixes.
gdbinit: Set WFI debug clocks always.
log: Add logging assert macro.
gsm: Use SC logging methods and the log assert.