storage mariadb10: lock only for not temporary table

GitHub: fix #18

Reported by Elena Stepanova. Thanks!!!