load {database | transaction} with listonly Locks Database

A database being loaded into is locked so that no other users can use it, even though no actual data may be loaded, as in the case of a load with listonly. To work around load with listonly locking an active database, create a dummy database and do the load with listonly into that database instead of the database you do not want to have locked.