Optimize StandardLockService

Cache the fact that the DATABASECHANGELOG table exists and is
initialized, otherwise we do the check every time we acquire or release
a lock