pkg/libcoap: fix build AND tests: add one to ensure it does not break in the future

Apparently not, otherwise it wouldn't have failed. In any case a matching whitespace pattern won't hurt even if some old git version works as intended.