[ticket/11495] Remove useless release_lock() method

PHPBB3-11495