ResourceBean volatile increment of int variable

https://github.com/bitronix/btm/issues/7