add mutex on read/write global data