Replace sync.Mutex by sync.RWMutex

This ensures that the status is no read while updated.