Not a bug. In the real games the Dynamax button is with the move selection, which is inaccessible when no moves are an option, as you'll be forced to struggle.A choiced locked Pokemon that is hit with Disable cannot then Dynamax afterwards, it is just forced to use struggle. Not sure if this is just a wack mechanic or if its a bug.