Fixes for a compilation problem and a race in the system timer code.

This fixes a regression introduced when the status return was added to platform_can_send().