Leus du Plooy and Harvey Hosein both score half-centuries as Derbyshire have the better of day three at Middlesex.