const ERROR_CHECKING: bool = false;
This makes locks panic if they are already held. It is only useful when you are running in a single thread