Fixing socketlock bug with reusing the same profile multiple times