[ŧicket/223] Set correct permissions to uploaded files (644)

phpbb_chmod() only sets the owner permissions. As we need to set the
permissions for all users, it is not possible to use phpbb_chmod().

B3P-223