Ethan Bamber took 4/28 as Middlesex bowled out Worcestershire on the final day to secure a 101-run victory at Lord's.