Added locks for table creation (a non-frequent task)