Most environments in which I have worked have used a variety of stacks. I have not seen any "stack lock in" effect to any great degree. The Microsoft stack does favor SQL Server when no other spec is given and LAMP favors MySQL but I don't see it as being that strong of a bond. The three main firms where I have worked this past several years:
Medical Software Firm: ASP.NET C# Stack on IIS with MySQL
Investment Bank: Java on *NIX with Sybase, Oracle and DB2
Major Software Vendor (and one of the major DB vendors mentioned here!!): Java on RHEL with PostgreSQL
I think that most good shops evaluate their needs on a project by project basis and don't choose database products solely on their stack integration. If this were so, Oracle would not be the largest DB maker and DB2 would be much smaller than it is.