[ticket/11766] Don't show edit, quote and delete buttons to users if topic is locked

But show quote button to guests if topic isn't locked

PHPBB3-11766