optimized the implementation

1. add main to .gitignore file to block main file
2. add main.c to test the implementation
3. fix some typo issues in /pthread_mutex_lock/syn_htable.h