I agree with you,captcha is quite annoying and there has to be a better solution.However,don't think CPU mining is the one.
There are a large number of people who access forum through their mobile devices.Does your mining idea works well with them ? Being someone who is very very considerate about their privacy,why would I want any script on the website to utilise my CPU power ? That opens to a lot of vulnerabilities.