As discussed in - #11868 We should use a single solve when solving portable lock directories. The performance should be roughly the same and improvements to it can be suggested as further issues after an initial implementation.