Two London-based companies have been fined for safety failings after one man died and another was left seriously injured falling six storeys through a lift shaft.