In the final analysis we self regulate: that is why we have 2 pilots, not a man and a boy, but PF and PM.
When the PF screws up and PM doesn't correct the error the self regulation fails and problems occur.
Sound training programmes, adherence to SOPs and an open blame free reporting culture all contribute to the safety management system but ultimately the atmosphere in the office remains the weak link.