Can't change _log database physical location in SQL Server
You need to do several steps to modify the location of a database's files.


Alter the catalog entries for the database in question using the `ALTER DATABASE' command
Take the database itself offline.
Move the physical files to their new location
Bring the database back online.


For instance, for the SbManagementDB database, you'd do something like:

ALTER DATABASE SbManagementDB 
MODIFY FILE (
    NAME = 'SbManagementDB'
    , FILENAME = 'F:\path\to\new\location\SbManagementDB.mdf'
);

ALTER DATABASE SbManagementDB 
MODIFY FILE (
    NAME = 'SbManagementDB_Log'
    , FILENAME = 'F:\path\to\new\location\SbManagementDB.ldf'
);

ALTER DATABASE sbManagementDB SET OFFLINE;


Now you physically move the files, probably using Windows Explorer, into F:\path\to\new\location, and bring the database back online.

ALTER DATABASE sbManagementDB SET ONLINE;


In your question, you are attempting to take database files offline, which is not necessary, and causing you grief.