Add pid locking to dynamic content refreshing.