Fixing thread safety issue relating to cached setter lookups