core/msg: revert part of #1285

use m->sender_pid instead of sched_active_pid again
undoes the optimization intended by #1285
fixes uint/int warning
core/msg: set m->sender_pid before it is used

fixes `msg_send_to_self` condition
SQUASHME: do it right
Merge pull request #1387 from LudwigOrtmann/msg_fixup

core/msg: clean up after #1285