[lwip] fix use of sem_post after resched arg was added
[arch][x86] change the logic for figuring out the default TOOLCHAIN_PREFIX

Recent changes to makefile caused TOOLCHAIN_PREFIX to always be set to
something, so change the behavior here to match what arm does.