[ticket/11766] Hide edit, quote and delete buttons if topic is locked

But show quote button to guests if topic isn't locked

http://tracker.phpbb.com/browse/PHPBB3-11766