static ServerThreadLock obtain() {
        return new ServerThreadLockImpl();
    }
Blocks the current thread until a {@link ServerThreadLock} can be obtained.

<p>Will attempt to return immediately if the calling thread is the main thread itself.</p>

@return a lock
helper/src/main/java/me/lucko/helper/scheduler/threadlock/ServerThreadLock.java