Mail.app does not sync Junk folder with Gmail
In your IMAP folders, do you still have the junk folder inside the GMAIL folder ? If so, you should select it, and the choose "use as -> junk" in the mailbox folder.