WIP DONTWORK add dh_open(), convert open_locked()

This commit won't work if spool queue has mails in it, reason for this
is that most of dma works with FILE streams, and fdopen() is not
permited in capability mode.