Alter Makefile, add file lock for SHM file, and do map refresh at fix rate.