Psychometric Personality Shaping Modulates Capabilities and Safety in Language Models