The pool's mining software uses getblocktemplate and asks the client who to pay, how much, what transactions are in the block etc. Then, when the block is solved, it compiles the block in a binary form then submits it to the client. So unless the pool's software understands what "payee" means in getblocktemplate, it's not going to pay a masternode.