core: fix warning about discarding volatile

fixes: https://github.com/RIOT-OS/RIOT/issues/1024