The shared_state_traits_backtrace should provide backtraces on lock_failed exceptions.
Assert non-null read_ptr/write_ptr in debug
trace_perf supports multiple database paths
shared_state has thread-safe copy, assign and move
Tidy