add update locked flag for patients