set filelock inside demo check to prevent double file lock in demo version