When Fewer Layers Break More Chains: Layer Pruning Harms Test-Time Scaling in LLMs