1. add struct motion_t operation when Ctrl + C signal occured,
   main thread add motion to global_stats;
2. fix 2 bugs about missing thread mutext unlock.