As the coronavirus pandemic has led companies to re-evaluate their office space needs, many small and midsize businesses are transitioning from standalone offices with long-term leases to occupying shared workspaces with flexible terms.