A NodeJS module taking the lock and door pattern to inception extremes