Support for using the same captcha in multiple forms of the same page

I'm using simple-captcha to confirm multiple actions in the same page. Each action must be confirmed inside a bootstrap modal, so I ended with multiple forms.

I got the idea for the solution from here: http://stackoverflow.com/questions/3683920/problems-with-simple-captcha