Arsonist set fire in nuclear sub 'to get out of work'