Make sure accessor creation is thread safe

@tgoyne