Added synchronization examples for lock and mutex