Assert that the forum or the topic on screen takes no new post from the account: it offers no "New Topic" (a forum) or no "Post Reply" (a topic), and with "because it is locked", it shows "Locked" instead.
Examples
Then I should not be able to start a topic
Then I should not be able to reply
And I should not be able to start a topic because it is locked
And we should not be able to reply because it is locked
Then we should not be able to start a topic
Pattern
Then(/^(?:I|we) should not be able to (start a topic|reply)( because it is locked)?$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.