We have purchased 4 houses over the years. Not a single one closed within the time frame originally agreed upon (usually 30 days). There’s always something.
I wouldn’t walk away immediately just because my loan lock expired (regardless of the length of escrow, you should have had a loan lock longer than 21 days anyway).
If the house is a good deal financially, I would try to make it work. If the rate difference between 21 days ago and now (up a bit) makes it no longer a good deal, then it was a marginal deal to begin with.