Cleanup lazy loading code

Remove the unneeded checks for opening/closing sessions in `SqliteModelFactory` lazy loading.