uncommented stats creation, sem init, stats unmmapping, lock, and unlock in print_stats, and sem_close