Fixing data race in context. And it's faster too.
Remove unreachable code

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com> (github: titanous)