Millwall have signed Leicester centre-half Sean St Ledger on loan for the rest of the Championship season.