Lock file issue

I’m having a really weird lock file issue. What will happen is that I will do say a pull request and there will be no lock file in the .git folder, then a lock file will appear for a split second disappear and then reappear and disappear again then I will get a lock file error, “A lock file already exists in the repository, which blocks this operation from completing.” Sometime a restart of the pc will fix the issue for a little while but it originated in source control and is now happening in github. anyone have this issue before?