[Core][Timer] Fixed scope problem on timer run method and switched run of the timer callback on the main thread.