rtems: Fix rtems_scheduler_add_processor()
Fix thread dispatch profiling of rtems_scheduler_add_processor().
Update #2797.