Added locksection sentence to flow plugin

It retrieves a wide system lock and holds it while executing inner
closure.